/*
  Copyright 1996-2003
  Simon Whiteside

    This library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Lesser General Public
    License as published by the Free Software Foundation; either
    version 2 of the License, or (at your option) any later version.

    This library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public
    License along with this library; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA


* $Id: TraceCallback.java,v 1.7 2003/02/24 18:10:53 simkin_cvs Exp $
*/

package simkin;

/**
 * This interface is implemented by objects which provide a tracing facility. 
 * Put the tracer in place by calling the {@link simkin.Interpreter#setTraceCallback setTraceCallback} method in {@link simkin.Interpreter Interpreter}
 */
public interface TraceCallback {
    /** 
     * this method is called when a trace message is generated.
     */
    public void trace(String s);
    /** 
     * this method is called an exception is shown in the trace
     */
    public void trace(Exception e);
}
